/**
 * ITmPackFactoryDao.java
 * Created at 2017-3-14
 * Created by xieshuang
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.basic.dao;

import com.broadtext.common.exp.DaoException;
import com.broadtext.rms.basic.model.TmPackFactory;

/**
 * <p>ClassName: ITmPackFactoryDao</p>
 * <p>Description: 电池pack生产厂dao层接口</p>
 * <p>Author: xieshuang</p>
 * <p>Date: 2017-3-14</p>
 */
public interface ITmPackFactoryDao {

    /**
     * 
     * <p>Description: 验证是否唯一</p>
     * @param t 厂区编码
     * @return 判断结果
     * @throws DaoException 异常
     */
    boolean isOnly(TmPackFactory t) throws DaoException;

    /**
     * 
     * <p>Description: 根据主键获取对象</p>
     * @param id 主键
     * @return 对象
     * @throws DaoException 异常
     */
    TmPackFactory getPackFactoryById(String id) throws DaoException;

}
